﻿using Abp.Application.Services;
using Abp.Application.Services.Dto;
using System.Threading.Tasks;

namespace MVlog.Application
{
    public interface IHomePageAppService : IApplicationService
    {
        /// <summary>
        /// 根据用户ID查找用户
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PagedResultDto<ArticleDto>> GetArticlesByUserId(GetHomePageInput input);

        Task<PagedResultDto<ArticleDto>> GetArticles(GetHomePageAllArticlesInput input);


        Task<ListResultDto<TagDto>> GetTags();


        Task<ListResultDto<CommentsDto>> GetCommentsByArticleId(long articleId);


        Task<PagedResultDto<ArticleDto>> GetArticleByTagId(GetHomePageArticleByTagIdInput input);

        Task<ArticleDto> GetArticleByID(long Id);

    }
}